<?php ?>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Shop manager</title>
<?php echo $html->css("frontend.css");
      echo $html->css("style_customer.css");
	  echo $javascript->link("jquery-1.5.2.min.js");
	  echo $javascript->link("jquery-ui/js/jquery-ui-1.8.13.custom.min.js");
?>
<link rel="stylesheet" href="css/frontend.css" type="text/css" media="screen" />
<link  rel="stylesheet" href="css/style_customer.css" type="text/css" >
<script type="text/javascript" src="js/jquery-1.5.2.min.js" ></script>
<script>
	$(document).ready(function(){
		//$('#menu_customer ul li ul').css({visibility:"visible",display:"none"});
		$(".acc ul").hide();
		$(".acc a").click(function(){
			$(this).next().slideToggle();
			return false;
		});
		
});
</script>
</head>
<body>
<div class="chung">
	<div class="menu">
    	<ul>
        	<li><a href="#"><img border="0" style="margin:5px; float:left;" src="/onlinemarket/img/clothes24.png"><span class="trong">Thời trang</span></a></li>
            <li><a href="#"><img border="0" style="margin:5px; float:left;" src="/onlinemarket/img/stock_status.png"><span class="trong">Gia dụng</span></a></li>
            <li><a href="#"><img border="0" style="margin:5px; float:left;" src="/onlinemarket/img/electronic.png"><span class="trong">Điện máy</span></a></li>
            <li><a href="#"><img border="0" style="margin:5px; float:left;" src="/onlinemarket/img/car24 .png"><span class="trong">Ôtô</span></a></li>
            <li><a href="#"><img border="0" style="margin:5px; float:left;" src="/onlinemarket/img/building.png"><span class="trong">Nhà đất</span></a></li>
        </ul>
    </div>
    <div class="login">
    	<a href="#">Đăng Nhập</a> || <a href="#">Đăng kí</a>
    </div>
</div><!--end div.chung-->
<div class="box_search">
	<div class="logo"></div><!--end div.logo-->
    <div class="search">
    	<div class="search_left" style="background:url(/onlinemarket/img/l.png) no-repeat ;"></div><!--end div.search_left-->
        <div class="search_content" style="background:url(/onlinemarket/img/box_search_center.PNG) repeat-x;">
        	<input type="text" name="txt_search_content" class="txt_search" ><input type="button" class="btn_search" value=" "></div><!--end div.search_content-->
	</div><!--end div.search-->
    <div class="support">
    	<a href="#"><img title="Hướng dẫn đăng bán" src="/onlinemarket/img/hdmb.png"></a>
        <a href="#"><img title="Hướng dẫn mua hàng" src="/onlinemarket/img/hdmh.png" ></a>
    </div><!--end div.support-->
    <div class="datetime">
			 Tỷ giá: USD = 20.620 VNĐ, EUR = 29.457 VNĐ
    </div><!--end div.datetime-->
    <div class="yahoo_support">
			 <a class="a_general" href="#" title="Hỗ trợ trực tuyến qua Yahoo!Messenger">
             	<img src="/onlinemarket/img/yahoo.png" height="20" width="20" title="Hỗ trợ trực tuyến qua Yahoo!Messenger" style="border:none;">
                 &nbsp; Hỗ trợ trực tuyến </a>
                 
    </div><!--end div.yahoo_support-->
</div><!--end div.box_search-->

<div id="wraper">
<div class="hr"><hr></div><!--end div.hr-->
<br>
	<div id="panel_customer">
    	<div id="avata">
        	<a href="#"><img src="/onlinemarket/img/customer_avata.png" /></a>
            <h3>
			<?php 
				  if(!empty($icustomer['Customer']['username']))
				  {
					echo $icustomer['Customer']['username']; 
				  }
				  else
				  {
					echo "No acount";         		
				  }
			?>
            </h3>
            <p>
            	<a href="#">Thay ảnh đại diện</a>
            </p>
        </div><!--end div#avata-->
        <div id="menu_customer">
        	<ul>
            	<li class="li_no_active">CÁ NHÂN</li>
            	<li class="li_active"><img src="/onlinemarket/img/cus_menu_action.png"><a href="#">Hoạt động</a></li>
                <li class="li_active"><img src="/onlinemarket/img/cus_menu_diary.png"><a href="#">Nhật ký</a></li>
                <li class="li_active"><img src="/onlinemarket/img/cus_menu_mess.png"><a href="#" >Tin nhắn</a></li>
                <li class="li_active"><img src="/onlinemarket/img/cus_menu_friend.png"><a href="#">Bạn bè</a></li>
                <li class="li_active"><img src="/onlinemarket/img/cus_menu_acount.png"><a href="#">Tài khoản</a></li>
                <li class="li_no_active">MUA HÀNG</li>
                <li class="li_active acc"><img src="/onlinemarket/img/cus_menu_buy.png"><a  href="#">Mua hàng</a>
                	<ul>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"><a href="#">Hóa đơn mua hàng</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"><a  href="#">Đang quan tâm</a> </li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"><a  href="#">Đang mua</a></li>
                     </ul>
                </li>
                <li class="li_active acc"><img src="/onlinemarket/img/cus_menu_ebay.png"><a href="#" >Nhập hàng nươc ngoài</a>
                	<ul>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"><a class="acc" href="#">Đang nhập hàng</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"><a class="acc" href="#">Đang quan tâm</a></li>
                     </ul>
                </li>
                <li class="li_no_active">BÁN HÀNG</li>
                <li class="li_active acc"><img src="/onlinemarket/img/cus_menu_shop.png"><a href="#">Shop</a>
                	<ul>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"><a href="#">Thông tin chung</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"><a href="#">Quản lý Shop</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"><a href="#">Cài đặt</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"><a href="#">Gia hạn-Nâng cấp</a></li>
                     </ul>
                </li>
                <li class="li_active acc"><img src="/onlinemarket/img/cus_menu_pin.png"><a href="#">Bán hàng nội địa</a>
                	<ul>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"><a href="#">Đang bán hàng</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"><a href="#">Duyệt mặc cả</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"><a href="#">Quản trị tin bán</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"><a href="#">Hóa đơn bán hàng</a></li>
                     </ul>
                </li>
                <li class="li_active"><img src="/onlinemarket/img/cus_menu_quangcao.png"><a href="#">Quảng cáo sản phẩm</a></li>
                <li class="li_active"><img src="/onlinemarket/img/cus_menu_card.png"><a href="#">Thanh toán trực tuyến</a></li>
                <li class="li_active acc"><img src="/onlinemarket/img/cus_menu_raovat.png"><a href="#">Rao vặt</a>
                	<ul>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"><a href="#">Đăng rao vặt</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"><a href="#">Tin đã đăng</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"><a href="#">Tin VIP</a></li>
                        <li class="sub_li_active"><img src="/onlinemarket/img/cus_menu_tick.png"><a href="#">Phiếu mua tin VIP</a></li>
                     </ul>
                </li>
            </ul>
        </div><!--end div#menu_customer-->
    </div><!--end div#panel_customer-->
    <div id="content_customer">
    	<h2 class="blue_bold" style="border-bottom:1px solid #ccc;"><?php echo $ishop['Shop']['name']; ?> Shop</h2>
        <?php foreach($iProduct as $iPro): ?>
    	<div class="product_item shadow" >
        	<div class="product_item_date">Ngày : 10/6/2011</div>
        	<div class="product_item_name"><?php echo $iPro['Product']['name']; ?></div>
            <div class="product_item_image"><img  src="/onlinemarket/img/<?php echo $iPro['Product']['picture']; ?>" ></div>
            <div class="product_item_price">Price:<?php echo $iPro['Product']['price'] ; ?></div>
        </div><!--end div.product_item-->
        <?php endforeach ;?>
        
        <div class="clear"></div>
    </div><!--end div#content_customer-->
    <div class="clear"></div>
</div><!--end div#wraper-->
</body>
</html>
